package cn.net.cfss.fgbp.face.manage.controller;

import cn.net.cfss.fgbp.base.vo.BaseReqVo;
import cn.net.cfss.fgbp.base.vo.BaseRespTempVo;
import cn.net.cfss.fgbp.face.manage.model.node.AddModel;
import cn.net.cfss.fgbp.face.manage.vo.BaseParas;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2020-2050</p>
 * <p>Company: cfss</p>
 *
 * @author lyg
 * @version 0.0.1
 * @date 2020/9/5 10:34
 * @other 以下修改下及其它信息
 * <p>v0.0.2,lyg,这是示例</p>
 */
@RestController
@RequestMapping("node/simulator")
@Api(tags = {"simulator"})
@Slf4j
public class SimulatorController extends BaseController{



    @ApiOperation("接收心跳通知模拟器")
    @RequestMapping(value = "/heart", method = RequestMethod.POST)
    public BaseRespTempVo heart(@RequestBody BaseParas<AddModel> req) {
        enableValidate(req.getPlain());
        log.info("recv heart={}", JSONObject.toJSONString(req));

        return new BaseRespTempVo();
    }




}
